package com.room2.model;

import java.io.Serializable;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "t_score")
public class Score implements Serializable {
    @PrimaryKey(autoGenerate = true)
    private long id;

    @ColumnInfo(name = "subject")
    private String subject;

    @ColumnInfo(name = "socre")
    private double score;

    @ColumnInfo(name = "isshowscore")
    private boolean isShowScore;//是否显示成绩


    public Score(String subject, double score) {
        this.subject = subject;
        this.score = score;
    }

//    public Score(String subject, double score, boolean isShowScore) {
//        this.subject = subject;
//        this.score = score;
//        this.isShowScore = isShowScore;
//    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }


    public boolean isShowScore() {
        return isShowScore;
    }

    public void setShowScore(boolean showScore) {
        isShowScore = showScore;
    }
}
